#include "MarkLayer.h"
#include "MarkSprite.h"

#define PNG_BACK "Play/black_back_V.png"
#define PNG_LABEL "Mark/label_player.png"


MarkLayer::MarkLayer()
{
}


MarkLayer::~MarkLayer()
{
}

bool MarkLayer::init()
{
	Layer::init();

	Size size = Director::getInstance()->getVisibleSize();

	Sprite* backSprite = Sprite::create(PNG_BACK);
	backSprite->setPosition(Vec2(size.width * 0.895f, size.height * 0.605f));
	this->addChild(backSprite, 0);

	Sprite* label = Sprite::create(PNG_LABEL);
	label->setPosition(Vec2(size.width * 0.895f, size.height * 0.94f));
	this->addChild(label, 0);

	MarkSprite::StartMarks(this);

	this->actionTime = MarkSprite::actionTime;

	return true;
}

void MarkLayer::playCard(int playerID, int cardID)
{
	MarkSprite::playCard(playerID,cardID);
}

void MarkLayer::playCard(int playerID, int colorCardID, int cardID)
{
	MarkSprite::playCard(playerID, colorCardID, cardID);
}

void MarkLayer::showMarks()
{
	MarkSprite::showTurtles();
}